*** Settings ***
Library    Selenium2Library
Library    DatabaseLibrary    # 导入数据管理库


*** Keywords ***
浏览器等待时间
    set browser implicit wait  20
打开平台登录页
    open browser  ${URL}  chrome
窗口最大化
    maximize browser window
连接Oracle
    # 使用cx_oracle连接oracle数据库，连接配置'用户名','密码','IP:端口/ORCL'
    connect to database using custom params  cx_Oracle  'dhcc25','dhcc250716','172.28.28.168:1521/ORCL'
连接Mysql
    # 使用pymysql连接MySQL数据库
    connect to database using custom params  pymysql  database='dhcc12',user='dhcc12',password='dhcc120924',host='172.28.28.169',port=3306
断开数据库
    disconnect from database


*** Variables ***
${URL}  http://172.28.30.2:8081/creditplatformweb/login
${USERNAME}  lee
${PWD}  Li199321.
${TESTUSER}  lee02
${TESTPWD}  Li199321.

*** test cases ***
test_db
        连接Mysql

        断开数据库